﻿using UnityEngine;
using System.Collections;
using UnityEngine.UI;


public class TradePanel : MonoBehaviour {

	public GameObject itemPanel;
	public PlayerStorage main;

	public Text carryText;
	public Text maxCarryText;
	
	public Text FoodQuantity;
	public Text WaterQuantity;
	public Text HoochQuantity;
	public Text PartsQuantity;

	// Use this for initialization
	void Start () 
	{
		
	}
	
	// Update is called once per frame
	void Update () 
	{
		FoodQuantity.text = main.foodQuantity.ToString();
		WaterQuantity.text = main.waterQuantity.ToString();
		HoochQuantity.text =  main.hoochQuantity.ToString();
		PartsQuantity.text = main.partsQuantity.ToString();
	 	carryText.text = main.carry.ToString();
	 	maxCarryText.text = "/ " + main.maxcarry.ToString();
	}
}
